Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #278 +/- ##
==========================================
+ Coverage 94.76% 94.78% +0.01%
==========================================
Files 84 84
Lines 13168 13208 +40
Branches 805 805
==========================================
+ Hits 12479 12519 +40
Misses 623 623
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Normalize server-error values before classifying adapter replies or retrying invalidation. Cover raw custom connections with cold-script and flushed-script tests in RESP2 and RESP3.
lan17
force-pushed
the
fix/rust-custom-redis-error-normalization
branch
from
November 13, 2026 07:23
297e7d1 to
fb5cf51
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A local reproduction with a raw
RedisConnectionwrapper showed that a server error returned asOk(Value::ServerError)bypassed invalidation recovery. With an empty script cache,NOSCRIPTbecame a protocol error instead of triggering the existingEVALfallback. Other server errors also lost their native error type and code.Change
Bug fix: normalize server-error values at the
RedisAdapterboundary before reply validation or invalidation retry. The public trait documentation now states that both Redis error representations are accepted.The existing built-in connection behavior, one-retry policy, command arguments, cancellation, and connection ownership are unchanged. Native unit tests cover error preservation; raw-wrapper integration tests cover cold scripts and
SCRIPT FLUSHwith RESP2 and RESP3.No design record is needed. This restores native adapter behavior without changing a portable contract or public construction API. Native error representations and client retry APIs remain binding and integration concerns under B01/B02/E01/X02; no new Quint regression is needed.
Ports
Validation
Head:
fb5cf51fb14cb2d355fe09805acf05a2a9ebf204The local checks below apply to the unchanged source tree after a commit-message-only update.
22c1f502ddb5f27419faf5caa528d9ea3a9c92e4with the new tests: two adapter unit regressions and both RESP2/RESP3 custom-connection tests failed.cargo test --locked --features redis --lib redis::tests::: 13 passed.cargo test --locked --features redis --test redis_integration redis_custom_connection -- --ignored: both protocol tests passed.make check-rust: passed, including formatting, both clippy checks, native tests, and smoke conformance.make integration-rust: all 7 tests passed across Redis, Valkey, Cluster, cross-language interoperability, and the new custom-connection cases.make audit: passed.git diff --check: passed.fb5cf51fb14cb2d355fe09805acf05a2a9ebf204, including the requiredtestcheck (CI run).fb5cf51fb14cb2d355fe09805acf05a2a9ebf204after green PR CI. Generation, symbolic checks, all four port replays, and the aggregate completed successfully.Not run: none of the required validation lanes. The mutation tier is not required because neither changed source file is named by the mutation catalogs. This pull request remains draft for maintainer review.
Follow-ups
None.